﻿using System;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;

namespace AnyOffice
{
    public partial class relogin : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SysLog.Log(base.Conn, 15, "");
            new UsersDao().Exit(base.Conn, base.User.Identity.Name);
            if (base.Cache["AnyOffice_User_" + base.User.Identity.Name] != null)
            {
                base.Cache.Remove("AnyOffice_User_" + base.User.Identity.Name);
            }
            base.CloseConn();
            FormsAuthentication.SignOut();
            Response.Redirect("login.aspx");
        } 

    }
}
